package com.xxxx.vao.server.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author ：xiongl
 * @date ：Created in 2021/4/26 8:58
 * @description：聊天消息实体类
 */
@ApiModel(value = "聊天消息实体类")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ChatMsg {
    @ApiModelProperty(value = "发送人")
    private String from;
    @ApiModelProperty(value = "接收人")
    private String to;
    @ApiModelProperty(value = "发送内容")
    private String content;
    @ApiModelProperty(value = "发送时间")
    private LocalDateTime date;
    @ApiModelProperty(value = "发送人昵称")
    private String fromNickName;
}
